package com.yi.mall.demo.controller;

import com.yi.mall.common.utils.Result;
import com.yi.mall.demo.service.IUserUserInfoService;
import com.yi.mall.demo.service.Impl.OpenFeifnImpl;
import com.yi.mall.demo.service.Impl.UserInfoServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class HelloController {
    @Autowired
    private UserInfoServiceImpl userUserInfoService;
    @Autowired
    private OpenFeifnImpl openFeifn;
    @GetMapping("/hello")
    public String hello() {
        return "Hello, demo service";
    }
    @GetMapping("/find")
    public Result findByid(@RequestParam("id") String id) {
        return openFeifn.findByid(id);
    }


}
